// This is a nice little jquery extension from
// http://jqueryminute.com/duplicate-and-clone-elements-multiple-times/

$.fn.duplicate = function(count, cloneEvents) {
	var tmp = [];
	for ( var i = 0; i < count; i++ ) {
		$.merge( tmp, this.clone( cloneEvents ).get() );
	}
	return this.pushStack( tmp );
};
